﻿@model  List<WebVideo.Models.LoginModel>
@{   
    foreach (var item in Model)
    {
    <div class="friend-item">
        @{
            if (item.Avatar != null)
            {
                <a href="@Url.Action("ThongTinCaNhan", "Individual", new { Friend = @item.UserName }, null)">
                    <img src="@Url.Content("~/Content/Images/Avatar/" + @item.Avatar + "")" />
                </a> 
            }
            else
            {
                <a href="@Url.Action("ThongTinCaNhan", "Individual", new { Friend = @item.UserName }, null)">
                    <img src="@Url.Content("~/Content/Images/Avatar/AdminAvatar.jpg")" />
                </a>
            }
        }
        <div class="UserFiend"><a href="#">@item.UserName </a></div>
        @{
              if (item.dkch == 0)
              {
                <div class="UserFiend">
                    <a class="btn btn-small btn-primary" href="#" id ="@item.UserName" onclick ="return ThemFiend1('@item.UserName.ToString()')">kết bạn <i class="icon-ok-sign icon-white"/></a>
                </div>
              }
              else
              {
                <div class="UserFiend">
                     <a class="btn btn-small  btn-success" href="#" id ="@item.UserName" onclick ="return XoaFriend1('@item.UserName.ToString()')">Bạn bè <i class="icon-remove-sign icon-white"/></a>
                   </div>
              }
        }
    </div>       

              
    }
}

